﻿@{
    Layout = null;
}
<!DOCTYPE html>
@Html.Partial("LoadPanelPartial")
<html>
<head>
      @if (false)
    {
        <script src="../../../../Scripts/jquery-vsdoc.js" type="text/javascript"></script>
        <script src="../../../../Scripts/ASPxScriptIntelliSense.js" type="text/javascript"></script>
    }
    
    <link href="@Url.Content("~/Content/ChkInfoOrder.css", true)" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/jquery-ui.css", true)" rel="stylesheet" type="text/css" />

    <script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/jquery-ui.min.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/FloatDiv.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/regex.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Common/GetRootPath.ashx", true)" type="text/javascript"></script>

    <link href="@Url.Content("~/Scripts/dynatree/skin/ui.dynatree.css", true)" rel="stylesheet" type="text/css" />

    <script src="@Url.Content("~/Scripts/dynatree/jquery.dynatree.min.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/json2.js", true)" type="text/javascript"></script>
    
    @Html.DevExpress().GetStyleSheets(

                new StyleSheet { ExtensionType = ExtensionType.GridView, Theme = DevExpressHelper.Theme }

)
    @Html.DevExpress().GetScripts(
                    new Script { ExtensionType = ExtensionType.ListBox }
    )
     <style type="text/css">
        #tree ul.dynatree-container
        {
            overflow: auto;
            position: relative;
            height: 90%;
        }
        #treeDiv
        {
            overflow: auto;
            position: relative;
            height: 465px;
        }
        body
        {
            margin: 0px;
            font-size: 12px;
        }
    </style>
     <script type="text/javascript">
         $(document).ready(function () {
             $("#toolMenu").smartFloat();
             $("#tabs").tabs();
         });

         function MenuTop_emClick(source, e) {
             switch (e.item.name) {
                 case "btnAdd":
                     {
                         //增加
                         Add();
                         break;
                     }
             }
         }
         function Add() {
             var obj = new Object();
             var treeModelList = $("#hdtableJsonStr").val();
             if (treeModelList == null) {
                 obj.Value = "";
             }
             else {
                 obj.Value = treeModelList;
             }
             var returnValue = window.showModalDialog(rootPath + "/Admin/Dialog/AllowPerformanced", obj, "dialogWidth=300px;dialogHeight=500px");

             if (typeof (returnValue) != "undefined") {
                 $.ajax({
                     type: "POST",
                     url: rootPath + "/Admin/AllowMonthPlanSummaryPerformanced/GetTableJsonStr",
                     data: { returnValue: returnValue },
                     success: function (result) {
                         if (result != "") {
                             window.location.reload();
                         }
                     }
                 });
             }
         }
    </script>
</head>
<script>
    if (top.boardtop) {
        top.boardtop.head_txt.innerText = "允许补录其他人员绩效台账人员定义";
    }
    </script>
<body>
   <div class="floatToolMenu" id="toolMenu">
        @Html.DevExpress().Menu(settings =>
       {
           settings.Name = "toolBarMenu";
           settings.ItemAutoWidth = false;
           settings.Width = System.Web.UI.WebControls.Unit.Percentage(100);
           settings.Styles.Style.Border.BorderWidth = System.Web.UI.WebControls.Unit.Pixel(0);
           settings.Styles.Style.BorderTop.BorderWidth = System.Web.UI.WebControls.Unit.Pixel(1);
           settings.Items.Add(item =>
           {
               item.Name = "btnAdd";
               item.Text = "编辑";
               item.ClientEnabled = true;
               item.Image.Url = Url.Content("~/Content/ControlImages/edit_add.png");

           });
           settings.ClientSideEvents.ItemClick = "function(source,e){MenuTop_emClick(source,e)}";
           settings.ItemLinkMode = ItemLinkMode.ContentBounds;
       }).GetHtml()
    </div>
    <div id="tabs" class="div">
        <div id="orgUserTree">
        @Html.Raw(ViewData["strTable"].ToString())
        </div> 
    </div>                                            
     <script type="text/javascript">
         lp.Hide();
    </script>
     @Html.Hidden("hdtableJsonStr", ViewData["tableJsonStr"])
</body>
</html>

